package org.jeecg.modules.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.entity.*;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 赛事
 * @Author: jeecg-boot
 * @Date:   2022-12-04
 * @Version: V1.0
 */
public interface IRunnerMatchService extends IService<RunnerMatch> {

	/**
	 * 添加一对多
	 *
	 * @param runnerMatch
	 * @param runnerMatchPlayerList
	 * @param runnerMatchDeviceList
	 * @param runnerMatchGunsList
	 * @param runnerMatchInfoList
	 */
	public void saveMain(RunnerMatch runnerMatch, List<RunnerMatchPlayer> runnerMatchPlayerList, List<RunnerMatchDevice> runnerMatchDeviceList, List<RunnerMatchGuns> runnerMatchGunsList, List<RunnerMatchInfo> runnerMatchInfoList) ;
	
	/**
	 * 修改一对多
	 *
   * @param runnerMatch
   * @param runnerMatchPlayerList
   * @param runnerMatchDeviceList
   * @param runnerMatchGunsList
   * @param runnerMatchInfoList
	 */
	public void updateMain(RunnerMatch runnerMatch, List<RunnerMatchPlayer> runnerMatchPlayerList, List<RunnerMatchDevice> runnerMatchDeviceList, List<RunnerMatchGuns> runnerMatchGunsList, List<RunnerMatchInfo> runnerMatchInfoList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 根据ID更新比赛状态
	 * @author tanxy
	 * @date 2022/12/4 11:04
	 * @param null
	 * @return null
	 */
	public boolean updateMatchStatus(String id,String flag);

}
